package com.example.blog.common.pojo.request;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Li_yizYa
 * Date: 2025/7/29
 * Time: 15:16
 */
@Data
public class UserLoginParam {
    @NotBlank(message = "用户名不能为空")
    @Length(max = 20, message = "用户名不能超过20")
    private String userName;
    @NotBlank(message = "密码不能为空")
    @Length(max = 20, message = "密码不能超过20")
    private String password;

}
